from flask import Flask
from env import configs
from flask_sqlalchemy import SQLAlchemy
from app.scheduler import SchedulerConfig

app = Flask(__name__)
# 加载配置文件
app.config.from_object(configs)

# 为实例化的flask引入定时任务配置
app.config.from_object(SchedulerConfig())
# db绑定app
db = SQLAlchemy(app)

from app import models
